package org.wu.mp.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Employee {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // bigint 20
    private String name;//varchar 255
    private String password;//varchar 255
    private String email;//varchar 255
    private int age;//int 11
    private int admin; // bit 1
    private Long deptId;//bigint 20

    @TableField(exist = false)
    private Department dept;

}
